from tkinter import *
x1=int (input("введите кординату x"))
y1=int (input("введите кординату y"))
n=int (input("введите коэффицент увелечения"))
coords=[x1,y1,  x1+10,y1,  x1+10,y1+10,  x1+20,y1+10, x1+20,y1+20,  x1+10,y1+20, x1+10,y1+30, x1,y1+30]
if n==0 and x1>=0 and x1<=500 and y1>=0 and y1<=500:
    pass
else:
    if n>0 and 0*n+x1>=0 and 0*n+y1>=0 and 20*n+x1<=500 and 20*n+y1<=500:
        pass
    else:
        if n<0 and 20*n+x1>=0 and 20*n+y1>=0 and 0*n+x1<=500 and 0*n+y1<=500:
            pass
        else:
            print("размер фигуры превышает макс. размер")
            exit()
root = Tk()
root.title("it марафон")
canvas = Canvas(bg="red", width=500, height=500)
canvas.pack (anchor=CENTER, expand=1)
canvas.create_polygon(coords[0] *n+x1, coords[1] *n+y1,
                        coords[2] *n+x1, coords[3] *n+y1,
                        coords[4] *n+x1, coords[5] *n+y1,
                        coords[6] *n+x1, coords[7] *n+y1,
                        coords[8] *n+x1, coords[9] *n+y1,
                        coords[10]*n+x1, coords[11]*n+y1,
                        coords[12]*n+x1, coords[13]*n+y1,
                        coords[14]*n+x1, coords[15]*n+y1, fill='indigo')
canvas.create_polygon (coords, fill="blue", outline="green")
root.mainloop()